package com.cn.goodsadmin.common.frame;

import java.io.InputStream;
import java.io.OutputStream;

public abstract class BaseNetWork implements INetWork {

	public RequestInfo requestInfo;
	public INetWorkAgecny netWorkAgecny;
	public InputStream inputStream;
	public OutputStream outputStream;
	// 错误码
	public int eorrCode;
	public long totalSize;
	// 本次读取的长度
	public long len;
	// 已经读取的总长度
	public long downSize;
	// 全部内容
	public byte[] content;// 内容的byte数组
	// 每次收取的内容
	public byte[] buf;

	public BaseNetWork(RequestInfo info) {
		this.requestInfo = info;
	}

	public abstract void startNetWork();

	public void setNetWorkAgecny(INetWorkAgecny agecny) {

		this.netWorkAgecny = agecny;
	}
}
